Adding solution for problem 62 in c.