Problem 10, start

Not optimized