Adding solution for problem 31 in c.
Adding solution for problem 32 in c.