Valeo interview question

Write a program which calculates the factorial of a number using recursion function .