Restate the problem
You are handed a brief: "Make search better." You read it twice and still do not know what to build. The words are real, but they are not yet a problem you can start.
Here is that brief beside a restatement of it:
Make search better.
Given a query string, return the cities whose name contains it, best match first. When the query is empty, return every city.
The second one is smaller. It names the input — a query string. It names the output — the matching cities, in an order. And it names the case that is easy to forget: the empty query.
Restating a problem makes it specific: what comes in, what goes out, and what must be true of the result. You are not solving anything yet. You are pinning down exactly what you were asked to solve.
Try it on the first brief yourself. Who types the query, and when? What counts as a match — the start of the name, or anywhere inside it? What should happen when nothing matches? Every question you cannot answer is one the brief left open, and now you can see it.
Once the problem is stated in your own words, the code has somewhere to start.
You are about to answer a short quiz on restating a problem.