Adding solution for problem 56 in c.