Recursive problem

If you’re interested in recursion, this will give you a good handle on the concept.