MathWorks interview question

Easy math and matlab problem