Question d’entretien chez MathWorks

How to code a factorial function