Wipro interview question

C code for factorial