I’ve worked there. They certainly aren’t all geniuses. But there are a huge number of brilliant engineers there - many of whom spend their lives schleping protobufs around for a fat paycheck.
It’s not the whiteboard interviews that makes that possible. It’s the prestige (especially from a few years ago), job security and salary. And the opportunity to work with other smart people. Google has an excellent talent pool.