He's not wrong. 90% of coding interviews are completely unrelated to the job. Here are some experiments for you to try in your next one:
- if it's a super difficult problem, remark how fascinating it is and ask the interviewer how often they're doing this stuff
- if it's FizzBuzz or something else that is solved and has a known value, propose hardcoding the answer as a constant and printing it without doing any computation, and see how that goes over
- if it's not one of these, you might be in a 10% case
My favorite was when I applied at, let's call it "StoreJogger" at as entry level engineer. This guy comes in for the technical interview and asks me a question that basically boils down to "how would you make StoreJogger?" and I remember thinking that if I knew the answer, I sure as shit wouldn't be in there. Yeah I guess it was technically a relevant question.
He's not wrong and it still marks why he probably comes across poorly and fails those interviews
People in hiring positions basically want productivity. That largely means they want people who will slot into whatever problem is at hand and tackle it effectively. The minute you approach the situation with "this is a stupid pointless problem you have asked me to solve" you failed the test. Even if it's only implicit and through subtle use of language, this will come across.
That is a systems design question and would have been reserved for Senior/Staff+ level hires. I have learned there is a whole delivery framework for providing that answer and I would not ask that of entry-level engineering. Assuming it was entry level.
I ask about FizzBuzz in coding interviews because (to my shock and horror), something like 90% of the applicants I've been handed to interview can't think through how to do it.
I've heard that from someone else and I almost can't believe it. My non-coding friends could write the pseudo-code for that, which is a pass in my interview loop. It's a trivial exercise in a 100-level coding course.
Part of the reason for this is online job postings.
The good candidates apply to some jobs, get hired, and stop applying. Some terrible candidates will apply to hundreds of jobs, never get hired for long, and just keep applying on every job posting. So a small minority of terrible coders end up being a disproportionately large fraction of interviewees.