Delivery Billing System: Cost, Pay-Up-To, 24h Active Drivers

Asked at Rippling · Coding Questions · Difficulty: Medium · Last asked Oct 14, 2026

Build an in-memory payout service for a delivery company. Drivers are paid by the hour for the time they spend on deliveries. The service records finished deliveries, reports how much is owed in total and how much is still unpaid, pays out everything that finished by a cutoff time, and reports the busiest moment of the last 24 hours.

Loading the problem…