Adding solution for problem 67 in c.