TalentPace interview question

Factorial of a given number program?