Infosys interview question

c++ questions