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