Amazon interview question

Question qui porte sur la technique Sliding Window.