Optimized problem 10 EVEN MOAR.