Reddit interview question

Implement Promise.all without using promises.