Uber interview question

string manipulation