Concentrix interview question

Recursion with practical example