Solved 114, 115, 116, and 117. All very straightforward, especially in Haskell.