I have found this task online, and am trying to solve it, since I want to learn Haskell, but I couldn\'t have done anything with it for past few hours. The basic principle o