Adding solution for problem 71 in c.