Infosys interview question

simple questions