Apple interview question

Implement a function to reverse a string in-place