Pregunta de entrevista de Morgan Stanley

Was asked to write SQL queries