Question d’entretien chez MathWorks

Explaining your code from the HackerRank challenge, analyzing runtime