Deutsche Bank Interview Question

functionality of promises in javascript.