Cognizant Interview Question

Create a factorial given a number