HCLTech interview question

Write a program for reverse string?