Domanda di colloquio di Microsoft

Question one was a sliding window