Infogain interview question

Code reversing a string?