Infosys interview question

All are the basic question