What to know
Think aloud
Narrate your plan before coding so the interviewer can follow and guide you if you drift.
Iterate openly
It is fine to start simple and refactor. Show how you find and fix your own bugs.
Use the tools
Run code, add quick tests, and check edge cases if the environment allows it.