Real throttling is hard to test deterministically with timers. Instead,
implement solve(events, interval) that simulates a leading-edge throttle.
events is a list of [timestampMs, value] pairs representing calls to a
throttled function. Return only the [timestamp, value] pairs that would
actually fire (one at most per interval window).
Semantics (leading edge)
interval ms after the last fired call.solve([[0,'a'],[5,'b'],[10,'c'],[20,'d']], 15) → [[0,'a'],[20,'d']]
Sample tests