MathWorks interview question

nothing difficult so far