MathWorks Interview Question

c++: OOP concepts, pointers