Composite index seek
Your task
A composite B-tree index is keyed on (region, score) and stores entries sorted by region ascending, then score ascending. Entries are given as [region, score, row_id], already in that sorted order. Implement an index seek for the query WHERE region = R AND score >= min_score, returning the row_ids of matching entries in index order. You must use the index ordering to seek, binary-search to the first matching entry rather than scanning all entries (assume the matching slice is small relative to the index). region is a string, score an int. Up to 200000 entries.
Examples
composite_index_seek(entries: list[list], region: str, min_score: int) -> list[int]Example 1
Input
composite_index_seek([["east", 10, 1], ["east", 20, 2], ["west", 5, 3]], "east", 15)Output
[2]