MathWorks interview question

Wasn't that difficult!