Question d’entretien chez Rewards Network

How to do safe recursion in Scala?