Amazon interview question

Sliding window and a non-algorithm python question