Pregunta de entrevista de IDrive

Basic questions on JavaScript and Java. Write one code