Pregunta de entrevista de Affirm

Question involving hashmap / string.