Prompt template
Run these steps in order.
01
Analyze the following code snippet: [insert code] 02
Explain the code’s functionality line by line. 03
Identify bugs and inefficiencies. 04
Suggest optimizations for performance and readability. 05
Provide an optimized version with explanatory comments.