Amazon interview question

1. Reverse a string in place