Cognizant Interview Question

Write program for reverse of string?