Infosys interview question

Promises and Observables usage and implementation