In a way, getting stuck in a coding interview is an opportunity.

The main goal of the interview is to see your problem-solving thought process, and being stuck is the ideal time to showcase it.

It's valuable to have a plan for this exact scenario. Blanking out in an interview is scary, but having a plan makes it easy to simply focus on executing it.