Visa Inc. interview question

Write the code to Reverse a String