Question d’entretien chez Cognizant

Can you please write a factorial code