Meta interview question

Sliding window problem with arithmetic solution