I was rejected from my BirdEye Frontend Software Engineer interview due to this question

I was asked to implement a polyfill for Promise.all, but with a twist: