MathWorks Interview Question

Easy math and matlab problem