Chapter 10 - Recursion from Introduction to programming with C# solved.