Implement solve(events, wait) that simulates leading-edge throttle over
a fixed timeline.
events is a sorted list of [timestampMs, value] pairs representing
invocations of a throttled function. Return all [emitTimeMs, value] pairs
the throttled function would actually fire.
Semantics (leading edge)
wait ms of the last fired call is suppressed.Examplesolve([[0,'a'],[50,'b'],[200,'c']], 100)
→ [[0,'a'],[200,'c']]
Sample tests