MathWorks Interview Question

question was based on graph, fibonacci series and oops +project