Solve the 8th Haskell problem

I used that `foldl` goodness.