Add statement to problem 30
Add some tests to problem 30
Resolve problem using iterative approach
Clean code and add javadoc to problem 30