Dynamic Yield interview question

Do you know how promises work internally?