Nextag interview question

reverse a string in place