Infosys Interview Question

Basic Java and javascript questions