Pinterest interview question

String manipulation question that involves a dictionary or hashmap structure