Infosys interview question

Promises