Cognizant interview question

code to perform string reversal