Sollicitatievraag bij Fi Money

Coding question solved using recursion(I haven't seen this question before)