Solutions for HackerRank problems in Haskell