HCL Technologies Interview Question

Write a C program to reverse a string.