FedEx interview question

Solve the sql questions from the sheet