Amazon interview question

Hashmap and sliding window problems.