Adding solution for Problem 1