Pregunta de entrevista de Walmart Global Tech

Simple hashmap question for level 1, a sliding window level 2