Hexaware Technologies interview question

Write a code to reverse the string