Deutsche Bank interview question

functionality of promises in javascript.