Add statement to problem 27
Add some tests to problem 27
Implement iterative solution to problem 27