Adding solution to problem 33.