Bottom line up front here is the difference between seniors and juniors:
Seniors want to accomplish the work so they can either move onto the next task or simply zone off into space. The goal is to accomplish all requirements as aggressively as possible with the smallest result possible. Less is more, but more time is less.
Juniors want to play with tools and code style. Frameworks are a huge deal. Seniors don't want to dick with any of this unless it is in place to intentionally police the juniors. Yes, I understand that juniors can be policed by simply having the proper automation in place, but that doesn't make the juniors feel like they are contributing to a cure for cancer.
When I'm interviewing, I don't mind reversing a linked list doing a binary search. It gives me an indication that the company is actually concerned with whether its employees have some baseline competency. I regard it as a positive signal.
Duke Mu did so, and subsequently despatched him on the quest for a steed. Three months later, he returned with the news that he had found one. 'It is now in Sha-ch'iu,' he added. 'What kind of a horse is it?' asked the Duke. 'Oh, it is a dun-coloured mare,' was the reply. However, on some one being sent to fetch it, the animal turned out to be a coal-black stallion! Much displeased, the Duke sent for Po Lo. 'That friend of yours,' he said, 'whom I commissioned to look for a horse, has made a nice mess of it. Why, he cannot even distinguish a beast's colour or sex! What on earth can he know about horses?'
Po Lo heaved a sigh of satisfaction. 'Has he really got as far as that?' he cried. 'Ah, then he is worth a thousand of me put together. There is no comparison between us. What Kao keeps in view is the spiritual mechanism. In making sure of the essential, he forgets the homely details; intent on the inward qualities, he loses sight of the external. He sees what he wants to see, and not what he does not want to see. He looks at the things he ought to look at, and neglects those that need not be looked at. So clever a judge of horses is Kao, that he has it in him to judge something better than horses.'
When the horse arrived, it turned out indeed to be a superlative horse.
- Liezi
Hopefully, the job they are hiring for isn't "master code riddle solver", making the whole process irrelevant whether you're junior or senior. In any case, the interview checks whether you know this problem and its solution or not. That's not a junior/senior distinction.