Domanda di colloquio di MathWorks

Walk me through ur thought process for this problem