Algorithm to Find Factorial of a Number using Recursion