DoorDash Interview Question

Case question, given a scenario how would you handle it