Capgemini interview question

Write an program for factorial using recursion