Microsoft interview question

DSA question on Sliding window