Pergunta de entrevista da empresa ServiceTitan

Recreate Promise.all function. How do you return a new Promise.