Your question is Debugging a Frontend Codebase. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
You’ll be given a silly question to debug something in their codebase, and you need to explain what to do to another engineer sharing your screen while you debug something like an interface implemented by dozens of classes with different overrides; how would you approach that debugging and communication?
Implement debug_overrides(implementations, expected) to trace each class's effective method result, identify classes whose result violates the interface contract, and report the first faulty override on each inheritance path. Preserve the input order of classes in the output.
Each implementation has name, parent, and override; parent is null for roots, and override is null when the class inherits its parent's result. Return diagnostic objects containing class, path, culprit, and observed.
def debug_overrides(implementations, expected):