Solution:
When a solid melts, its temperature remains the same because the heat energy supplied is utilised to break the bonds between the particles of matter. Therefore, the temperature of the solid does not change till all the solid melts.
Heat energy goes into separating the particles of the solid. When a material is solid, its molecules hold together due to intermolecular forces. When a material is liquid, it flows freely because it is not bound by these forces. But in order to go from the first to the second, those molecules have to be broken apart from each other. That's where the heat energy goes.
(Answer)