In mathematics, the factorial denoted by n!, n is a non-negative integer, The result is the product of all positive integers less than or equal to n.
For instance, For example, 6! = 6 × 5 × 4 × 3 × 2 × 1 = 720.
According to the convention for an empty product. When n = 0, The value of 0! = 1.
Where,
n = Number of elements