Add Solution to Problem 2