LTM Limited interview question

Explaining javascript concepts and predicting output for promises and settimeout