IBM Interview Question

question related to java and javascript