ALTEN interview question

Factorial function implementation in Python