Domanda di colloquio di Cobblestone Energy

Standard sliding window problem from leetcode