Your question is Performance vs Maintainability Trade-offs. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
How do you approach the trade-offs between performance and code maintainability? Explain how you identify whether optimization is necessary, evaluate alternative implementation approaches, and make a decision that supports reliable delivery. Include how you would validate performance improvements and prevent premature or overly complex optimization.