MathWorks interview question

Matlab