Infosys interview question

pointers..