LifeOmic interview question

Write your own implementation of Promise.all() in NodeJS?