Meta interview question

String related problem