Meta Interview Question

Sliding window problem with arithmetic solution