Amazon Interview Question

Sliding window question on arrays