XYZ Interview Question

what is promises explain it