MathWorks interview question

Project description done in college