D. E. Shaw India interview question

2 Leetcode Medium questions on DP and Array.