XYZ interview question

what is promises explain it