Write a function factorial(n) that returns n! (n factorial).
factorial(n)
n! = 1 × 2 × 3 × ... × n
Read a number and print its factorial.
Example: Input 5 → Output 120
5
120