Problem 3 Solution