Infosys interview question

basic questions