Pregunta de entrevista de IBM

question related to java and javascript