In my uneducated opinion, Google's hazing interview is not to establish whether one can write a for loop or not but to establish how dedicated one is to working at Google. An anecdote: I interviewed at Google ~10 years ago and failed. They did not ask anything complicated (I don't know if it was because the polices were different or they actually needed someone with my expertise) but I had a complete brain freeze for some reason. Anyways, ever since then a Google recruiter reaches out every year or so. I always tell them to get lost because I already failed and they always respond that most of their employees pass on second or third time only.
Now, recruiters could have been lying about that but on the other hand, they obviously know that I applied before yet want me to apply again. I'd imagine a regular company would have done something about their recruitment process if they had that many false negatives. However, if I wanted to get dedicated employees, that would be exactly how I hired.