Infosys interview question

Apptitude and java