Question d’entretien chez Pinterest

String manipulation question that involves a dictionary or hashmap structure