Problem 4 Solution