Pregunta de entrevista de Block

Two tables, last question was a basic windows function query