Adding solution for problem 58 in c.