Add #52 solutions in C and Haskell