MathWorks interview question

About Data Structures and C++