Calculate Courier Earnings | DoorDash Interview Question