I had a question like that one time in an interview. Totally inconsistent with the rest of the interview.
I just looked at the guy like he was an idiot. He probably thought I was one as well.
Didn’t get the job and was not really disappointed.
I’ve had several of these questions. They’re bowlsheet. The only way to approach them is to view it as a way to appease HR. HR doesn’t know crap about debugging or engineering. They like to pretend they do, but they really don’t, because they can’t.
The first big company I had an interview with was for Procter & Gamble.
One of the first “psych” tests was placing a piece of paper in front of the table and all applicants must make an origami figurine, I kid you not.