MathWorks Interview Question

Mostly related to C++ and Java and OOP. Some math problems related to graphs.