Solution to problem 13 finished using functional combinators
Add test to cover the problem