Infosys Interview Question

some technical question on c++