Debug with evidence
What input makes a useful first check?
Examples
Worked example
Input
Errors appear only with an empty search query.
Expected output
An empty query.
Hints and solution
Hint 1
Write down the starting state and walk through one example by hand.
Reveal worked answer
A small case isolates the branch that handles missing input and gives you a repeatable result.