Adding solution for problem 64 in c.