https://www.hackerrank.com/challenges/30-recursion
Objective
Today, we're learning and practicing an algorithmic concept called Recursion.
Task
Write a factorial function that takes a positive integer, N as a parameter and prints the result of N! (N factorial).
Input Format
A single integer, N (the argument to pass to factorial).
Output Format
Print a single integer denoting N!.
Sample Input
3
Sample Output
6