Infosys interview question

Techinal question related to java