Meta Interview Question

Sliding window problem, medium level