Chapter 2, Exercise 2 recursive solution
Chapter 2, Exercise 3