Gigamon interview question

Recursion program in C language - code