Extreme Networks interview question

Factorial program in both first class and with recursion.