haskell version of codility problem
cool ciruclar reference that works because haskell is lazy!
simple puzzle