Problem 13 Solution