Added solution to problem 5 in C, Haskell, Java and Python