MathWorks interview question

C++ implementation questions, linear algebra