Pregunta de entrevista de Pilot Flying J

The advanced algorithm, brain teaser, SQL query solve, whiteboard coding.