Cognizant Interview Question

Write C program to reverse a String