input: Write a Python function named special_factorial to calculate the Brazilian factorial of a given integer. The Brazilian factorial is defined as the product of factorials from n down to 1. The function should take an integer as input and return the result of the Brazilian factorial computation.
  assert special_factorial(4) == 288
  assert special_factorial(5) == 34560
  assert special_factorial(7) == 125411328000
  assert special_factorial(1) == 1
output: def special_factorial(n):
      def factorial(x):
          if x == 0 or x == 1:
              return 1
          result = 1
          for i in range(2, x+1):
              result *= i
          return result
      
      brazilian_factorial = 1
      for i in range(1, n+1):
          brazilian_factorial *= factorial(i)
      
      return brazilian_factorial