Code Optimization
Review and optimize code for better performance and efficiency.
Please provide the code snippet you would like optimized. Review the provided code for any performance issues or inefficiencies and suggest improvements to enhance its performance and readability. Your suggestions should focus on making the code more efficient, scalable, and maintainable.