Exercise 1.11 - recursive vs iterative process