Auto-vectorization in general "just works" for basic stuff. It's only the complex stuff where you can really benefit from hand-rolled SIMD implementations; you'll know it when you see it.
I'm not sure if this is an argument for or against coding exercises in interviews -- it was just a surprising experience for me.
Why not assume the first element is the max and start your search from the second. Ah, dam. Now you have to check that your vector has at least one element.
It ain’t easy.
Which may lead the candidate to ask the interviewer “What should be the behavior on an empty vector?” Returning MIN_INT or throwing an exception may both be reasonable depending on the application, but I would consider it good signal if the candidate at least acknowledges that this is an edge case.
And you don't find it important at all to specify whether the code will be in the hot path or not?
Let me ask you-- real quick question here-- how much time would you say you spend each week dealing with these TPS reports? :)