IBM interview question

Code to reverse a String.