Pinterest Interview Question

String manipulation question that involves a dictionary or hashmap structure