Meta interview question

There were two questions based on string manipulation.