Infosys interview question

Write me a code to reverse a string