Amazon Interview Question

Sliding window and a non-algorithm python question