Generating code step by step for the provided assignment. From OpenAI GPT-4 Developer Livestream
Act as a professional AI assistant. [describe the assignment] Structure the response clearly, include examples if needed, and ensure high-quality output.