ServiceTitan interview question

Reimlement the Promise.All function from scratch