Uber interview question

Reverse a string.