Your question is Refactor a Legacy Codebase. 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).
Describe how you would refactor a legacy codebase.
Explain how you would assess the existing system, prioritize technical debt, reduce regression risk, and sequence the work without disrupting current delivery. Address testing gaps, stakeholder alignment, rollout decisions, and how you would measure whether the refactor improved maintainability and developer velocity.