HARMAN interview question

Javascript question on promise and nodejs