A program which is used for reversing a word in C