Avanade interview question

Recursive function for a factorial