Credit Karma interview question

How do you build a Promise from scratch?