Capgemini Interview Question

some C++ programs