Question d’entretien chez MathWorks

Pretty simple algorithm based question