Circle FinTech Interview Question

Recursion code output