Capgemini Interview Question

Based on c and c++