HCLTech Interview Question

Write a program for reverse string?