Adding solution for Problem 11