Calculate n! (n factorial).
A factorial multiplies a number by every positive integer smaller than it — used throughout combinatorics and probability.
n! = n × (n−1) × (n−2) × ... × 1