MathWorks Interview Question

Question from C, C++