Cognizant Interview Question

Reverse a string and print it