Pergunta de entrevista da empresa Walmart Global Tech

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