Hisoft Envisage interview question

Reverse a string