Infosys interview question

they focused on java coding