How did you handle a situation where a junior developer was struggling with code quality in your previous role?

Behavioral