Fixed off-by-one error
Finished Problem 41 (Naive, Haskell)