Factorial of Factorials

Challenge Difficulty: Medium | Estimated completion time: ~15 minutes

Create a function that takes an integer n and returns the factorial of factorials. See below examples for a better understanding:

Examples

fact_of_fact(4)
output = 288
// 4! * 3! * 2! * 1! = 288
 
fact_of_fact(5)
output = 34560
 
fact_of_fact(6)
output = 24883200

Solution

Python
Output