there's at least one collaboratively edited doc about this standard interview Q; see https://github.com/alex/what-happens-when
This question can truly be incredibly interesting.
But I didn't come up with it in a quick Web search and thought maybe I had dreamed it.