MathWorks interview question

Everything was too basic