Pregunta de entrevista de Bloomberg

problems that required hash maps to solve