Question d’entretien chez Barclays

Write a function to resolve n!