Clutter Interview Question

String-related algorithm question