DoorDash Interview Question

One long, meaty take-home challenge. :p