Goldman Sachs interview question

Leetcode medium, array manipulation, sliding window