Where did I make that assumption? I have no idea whether he had heard of it or not, nor do I think it would make a difference either way.
What are my other assumptions?
For a good high school student, this would be "easy peasy".
It is possible that they terminated his interview here, because struggling with this would be pretty damn scary - Personally, I wouldn't terminate an interview on just this one question, but I would ask another algorithm question to see if this part of the candidates skill set could possibly be so broken - given that, it is entirely possible that they had already "worked down" to this question due to his inability to answer any of the other more complex questions.
It is also likely that they terminated it here because he got bent out of shape by the question... or perhaps they terminated it here because it it was the last interview question at the end of the day.
Whatever the reason, given how he reacted, I think that Google made the right decision.
Yet he did have issues coding a solution... Do you think that the issue was that he didn't understand what was being asked? Given how simple the problem is, that would be an even bigger red flag.
That's why they asked a question that should be "easy peasy" to anyone with basic computer science skills.