Cognizant interview question

Code reverse of a string?