ex8 day 3
ex8 day3 (but also showing recursive solution)