Infosys interview question

the asked me some basics