input: Write a python function to calculate the factorial of a number using recursion.
  assert factorial_recursive(1) == 1
  assert factorial_recursive(3) == 6
  assert factorial_recursive(5) == 120
output: def factorial_recursive(n):
      if n == 0 or n == 1:
          return 1
      else:
          return n * factorial_recursive(n - 1)