Pregunta de entrevista de Pinterest

String manipulation question that involves a dictionary or hashmap structure