Toast Inc interview question

Reverse a string in place.