Credit Karma Interview Question

How do you build a Promise from scratch?