Pregunta de entrevista de ServiceTitan

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