input: 
  def factorial(n: int) -> int:
      """Compute the factorial of a given number.
      >>> factorial(7)
      5040
      """
  
output:     if n == 0 or n == 1:
          return 1
      else:
          return n * factorial(n - 1)