MathWorks interview question

Fundamental Java, Javascript questions.