Pregunta de entrevista de IBM

String problem based on using a hashMap