Pregunta de entrevista de Whatfix

A medium LC problem with hashmap use