Autodesk interview question

Code pad question - implement promisify