Pinterest Interview Question

String manipulation involving a dictionary or hash map structure