Adding solution for problem 33 in c.