Uber interview question

On Strings