Question d’entretien chez MathWorks

Walk me through ur thought process for this problem