Problem 5 Solution Complete