Pregunta de entrevista de Optum

Then he asked me to write an SQL query.