You inherit an unfamiliar codebase. How do you find where the bug is?

Answer it out loud before you open anything. The value of the flags below is in comparing them to what you actually said — including whether you asked who uses it before naming what you would build it with.

The situation behind the question

A bug report: "Search results sometimes show products that are out of stock." The product search service was written by a team that no longer exists. It has about a thousand files (illustrative), no README worth the name, and a passing test suite. You have a day.

What it is really testing

Whether the candidate reads a codebase with a goal — entry point, follow the data, find the state, find the side effects, find the boundary — rather than reading it, and whether they can reverse-engineer the part that matters from behaviour.

Where the move is taught