AppDirect Interview Question

In pair coding, there was simple string manipulation question.