Amazon Interview Question

1. Sliding Window Sum