Describe a time when you had to refactor code to make it testable.?
I once refactored a tightly coupled class by introducing interfaces and dependency injection,
enabling mock dependencies and isolated unit testing, which improved code quality and test
coverage.