Adding solution for problem 33