Capgemini Interview Question

Code explanation of recursion in C++ OOPs Concepts