Infosys interview question

C/C++