Pregunta de entrevista de PBT Group

Extremely difficult SQL questions(By anyone's standard)