Implement promiseRace(promises) — return a promise that resolves or rejects
with the first promise that settles.
solve(delays, shouldReject) simulates a race: each entry is a [delayMs, value]
pair. If the corresponding shouldReject flag is true the promise rejects
with value instead.
Constraint: Do NOT use Promise.race itself.
Sample tests