Brand Networks interview question

Implement a promise function