MathWorks interview question

Java Qustions