MathWorks interview question

The interview was simple.