Infosys interview question

Noting special...based on core java