Capgemini interview question

some C++ programs