MathWorks interview question

Cpp and Controls based questions