Avanade Interview Question

Recursive function for a factorial