Problem 4 Explanation