Cognizant interview question

Write a program to reverse a string in C language.