VergeSense Interview Question

Solving basic sliding window problem