Implement a function customPromiseRace that takes an array of promises and returns a new promise. It should behave like the native Promise.race() but you cannot use Promise.race in your implementation.
customPromiseRace
Promise.race()
Promise.race