Robinhood interview question

Leetcode Medium - develop a sliding window algorithm