Aristocrat Interview Question

Promises in javascript