Problem

Return n! recursively (0! = 1).

Examples

  • factorial(4) -> 24
  • factorial(0) -> 1
Compile and test (Ctrl+Enter)