Capgemini Engineering Interview Question

basic c/ c++