It’s really annoying to have an annoyed rude interviewer insist your answer is wrong for 10 minutes until the second interviewer awkwardly explains to the first that you were right, and then act defensive the entire rest of the interview. Some candidates have just gotten tired of the disrespectful interview process. If you intend to test how well we put up with disrespect in the interview, just say so ahead of time so we can cancel and apply elsewhere
goodness, it wasn't disrespect. I actually thought the code was incorrect.
I'm also not questioning something I know is right.
Mostly, I just let them code. When they're done, I always say ... are you satisfied? some go back and check, others stand pat, but this lets them take a fresh look.
I then have the opportunity to question something I think in my heart is wrong. I the example, he was right and I was wrong.
For things that look ok, I sometimes start a discussion about embellishments they could add or other techniques.
I really try not to be that guy. I just want to get to know them.