Adding solution for problem 14 in c.