Ticoon Technology interview question

Recursion