MathWorks interview question

One of Computer Science Fundamental Question