Cognizant interview question

Simple program to reverse string