Meta interview question

string manipulation