First 3 Problems. Functions are written in .hs file and run interactively in the command line with GHCI.