Pregunta de entrevista de Flatiron Health

Hashmap question with a string variation.