Adding solution for problem 65 in c.