A C program that will reverse the input