Problem 10. Correct, too slow