Crazy Refactor using foldLeft, much smaller code, harder to read though
Passed test for 100
Added failing test for 4