Cognizant Interview Question

Factorial program