Problem 2 Solution Complete