When I interview using coding problems, you just need to know very basic Java or python to solve the problem.
We also nudge interviewees in the right direction to make sure they don't get stuck, which would be in no ones interest.
There is also no hard requirement that you need to solve the problem completely. If you talk to someone for 45 minutes about a coding problem you will get a good sense of their performance, even if they don't solve the problem.
Coding interviews are great (except making the intervieww very nervous), but you have to be mindful as an interviewer.