Sounds to me like Austin's friend was able to take advantage of a rather unique situation where the interviewer was under-prepared and/or hadn't themselves taken the time to answer the question they asked beforehand. I would say to apply this yourself, ask excellent questions, carefully examine the criteria and parameters of their "gotcha" or "skill-testing" question, and make sure you are extremely well prepared and hope you get an interviewer that is not as prepared as they should be (happens more often than you'd think.) A lot of interviewers are engineers themselves and are taking time away from solving business problems to propose the technical equivalent of Reader's Digest riddles to candidates. If you see an opening like this, take it and hope they appreciate the cajones it takes to call them out like that.
Barring that? No clue 😜😜😜
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.