MathWorks Interview Question

One of Computer Science Fundamental Question