Question d’entretien chez bet365

Convert an OO function involving a for loop into a recursive function