Problem 3 Explanation