Implement a custom Promise.race() method
You are required to implement a custom Promise.race() function.
The Promise.race() method returns a promise that fulfills or rejects as soon as one of the promises in an iterable fulfills or rejects, with the value or reason from that promise.