Hexaware Technologies Interview Question

Write a code to reverse the string