Domanda di colloquio di Kaizen Reporting

Solve this problem with and without recursion