Adding solution for Problem 10