FUSE Autotech interview question

Implement a Promise in Javascript