Naive version of Problem 15