A company like google has the resources to basically just make their interview an IQ test with the assumption that they can throw smart people into any role they need them in.
I'd rather they just sit me down in a quiet room and have me take a formal IQ test (Wonderlic, etc.). Seems like it would be a more efficient use of time for all concerned.
Seriously, we could get this done in three steps:
1. Phone screen including Fizzbuzz-level programming challenge.
It's legal, just difficult to defend, because there are racial differences in IQ. So, there is a presumption by the EEOC that you are discriminating based on race if you give an IQ test.
You can get around this by conducting a study that finds IQ is better correlated to performance on a particular role than any other nondiscriminatory measure, but good luck with that, and good luck proving that when you get sued by someone. It's just too risky, despite not being illegal.
It's absolutely legal. Like any other screening tool that has significantly differential impact by race, it's only legal when it is sufficiently demonstrably related to performance in the specific jobs for which it is used as a screening tool.
There is a popular myth that it is illegal because of a case where it was found to be illegal in the specific manner in which it was used.
Pretty sure that's not the case. When I worked for IBM back in the day, their interview did in fact involve an actual IQ test administered online as a first screening step.
As with all things employment law, it's more complicated than that. Briefly, the test must be "professionally developed" and relevant. Thus the whiteboard programming exam is an admissable proxy for an IQ test.
Seriously, we could get this done in three steps:
1. Phone screen including Fizzbuzz-level programming challenge.
2. IQ Test
3. Personality/Culture-fit interview.