Nobody has ever solved a problem in an interview while silent and sweating. The ones who get the job narrate. Think of it as a very nervous nature documentary about your own brain.
Say what you are thinking
Interviewers cannot score thinking they cannot hear. Restate the problem, ask clarifying questions, describe a simple approach first, then improve it.
Start simple, then optimise
A working simple answer beats an unfinished clever one. Get something correct, say what its limits are, then improve it if time allows.
When you get stuck
Say so, calmly. Walk through a small example by hand. Ask for a hint without apology. How you recover is part of what they are testing.
System and design rounds
Clarify scale and constraints before drawing anything. Start with the simplest design that works, then discuss the trade-offs as you add parts. There is rarely one right answer, so explain your choices.
Take-home tasks
Keep the scope small and the code clean. Write a short readme with what you built, what you skipped and why. Respect the time limit they gave you.