Calculate factorial using recursion
Calculate factorial using the second pattern