Hexaware Technologies Interview Question

Factorial of a number using recursion as well as in a function