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