Microsoft interview question

reverse a character string in place.