HCL Technologies interview question

Write a C program to reverse a string.