Pregunta de entrevista de Robi

Solve the algorithmic question about hashmap.