Synthesis interview question

Factorial algorithm using recursion and iteration