Rewards Network interview question

How to do safe recursion in Scala?