Goldman Sachs Interview Question

Leetcode medium, array manipulation, sliding window