Cognizant Interview Question

Simple program to reverse string