Optimize and rewrite your code to improve performance and readability.
This prompt helps you to efficiently rewrite your existing code to enhance its performance, readability, or other aspects based on your specific goals. You will need to provide the original code, specify the programming language, and describe your optimization goals. These inputs will guide the rewriting process to ensure the new code version meets your requirements.