CentraLogic interview question

promises asynchronous api callback Javascript