MathWorks interview question

Java and JavaScript