As someone who is graduating this semester, those kinds of questions are very commonly asked to recent grads and for junior positions. In fact it would make less sense to ask a senior programmer whiteboard questions.