AppDirect interview question

In pair coding, there was simple string manipulation question.