Promises Exercise

An odd number means the promise resolved; an even number means it was rejected.

Waiting for the promise…