MathWorks interview question

Basically as I described in the interview process.