Intuit Interview Question

A question on sliding window.