Minimize batches and allocate riders by time | DoorDash Interview Question