Domanda di colloquio di Amazon

Slide window concept based question