The thing is, that Google -- and moreover Amazon -- do not ask these questions of those who code for a living. They ask them of *everyone* applying for a tech position.
One Amazon interview started off with someone unrelated to the position I was interviewing for demanding that I write code to come up with a list of English words from adjacent letters in an n-by-n matrix. Because you totally need to do that on a daily basis when writing a kickstart template.
When Facebook tried the same thing, I told them I was no longer interested.