Never Consent to a Coding Test in an Interview
medium.com
medium.com
Keep in mind that:
a) once hired, you will be dealing with a team hired using these programming quizzes, in other words, people who value simple rituals instead of in-depth understanding
b) if the employment takes priority over quality of team, you must learn how to deal with mediocrity and incompetence. In fact, I suspect the main reason for these tests, especially those conducted on a whiteboard, is to gauge the candidate's ability to deal with idiotic assingments (i.e. can I offload the work I don't want to do on this guy?)
So perhaps, if you want to be employable, you should state upfront: I LOVE doing meaningless repetitive tasks that no one wants to do!
Your observation is true. Very rarely employers want to hire a competent (read: expensive and finicky) developer. They would rather have a team (team is good!) of average developers that can work at a moderate pace, generating reliable paychecks for everyone involved.
It's only in a startup, or in a small company where the people who decide have a stake in the game (and/or skin), you might get hired for your actual competence.
so, if you want to work for amason or guugle or appel or phasebook - better learn how to whiteboard.