Optimized Problem 10