IBM interview question

Reverse a string