Intuit Interview Question

Dynamic Programming question and sliding window question