Pregunta de entrevista de United Airlines

Advanced-level SQL query using Windows and CTE functions