Add statement to problem 29
Add some tests to problem 29
Add iterative solution to problem 29