Cognizant Interview Question

Code reverse of a string?