What to know
Clarify before coding
Restate the problem, ask about inputs, outputs, constraints, and edge cases, and agree on examples.
Explain your approach
Describe a brute-force baseline, then improve it, discussing complexity tradeoffs out loud.
Test your solution
Walk through examples, handle edge cases, and explain how you would verify correctness.