added recursive solution to challenge 2