Step-by-step explanation:
Endothermic reaction as heat from the environment is absorbed.
the transformation from solid to liquid is due to the latent heat of fusion/ enthalpy of fusion.
the heat energy absorbed from the environment is used to break the bonds of the solid structure therein converting it to a liquid. this is the reason why the temperature of the substance is constant at the state changes.