Problem 7: Faster
Problem 9