Are those types of exchanges still take place at the interviews? I was lucky enough to avoid them, having worked at companies that are able to afford to spend extra time training people. Those types of discussions often remind me of the Linus' quote: "Bad programmers worry about the code. Good programmers worry about data structures and their relationships."