factorialize function factorialize takes an input and returns the factorial In mathematics, the factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n