Add statement to problem 24
Add some tests to problem 24
Add recursive implementation to problem 24