Amazon Interview Question

Hashmap and sliding window problems.