Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

An ID allocator manages the inclusive integer ID space from 0 through 999. Each allocated range belongs to a named bucket, and allocations never overlap.

You are given bucketRanges, an array whose entries have the form [bucketName, startId, endId]. startId and endId are inclusive decimal strings. Entries may be unsorted, and a bucket may own multiple ranges.

Test Cases
Input
Output
Expected