Uber interview question

Brief introduction and question on string manipulation