Passed test changing to if clause and decrementing number
Refactored to recursive solution to remove mutable variables
Added failing test for 10, skipped 9 as it is an exception case