Question d’entretien chez Rakuten Kobo

A maths question which ended up being a recursive function.