JD Power interview question

reverse a string in place