TEOCO interview question

Implement factorial function recursively and with a loop.