Frage im Vorstellungsgespräch bei AppDirect

In pair coding, there was simple string manipulation question.