Question d’entretien chez BT Group

Write a function that works out n factorial