Pregunta de entrevista de Capital One

Technical was a hashmap question