Domanda di colloquio di Navan

Asked to code a simple sliding window problem