Pregunta de entrevista de Amazon

Hashmap and sliding window problems.