Implement promiseAllSettled(promises) — returns a promise that resolves
once all input promises have settled (either fulfilled or rejected), with
an array of {status, value} or {status, reason} descriptors.
Do NOT use Promise.allSettled itself.
Sample tests