Reddit Interview Question

Implement Promise.all without using promises.