This Is a Certified Answer

Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
When a container can is heated to a very high temperature, due to the thermal property of matter, it expands in size. It becomes bigger in volume.  Of course it is hot and has more energy including the heat energy.
Now when cold water is put in to it suddenly, the temperature of the container, the heat energy flows from can into cold water. due to this the container loses its heat, and the temperature becomes less.
When the temperature becomes less, it contracts, shrinks in size and in volume.
During this process of shrinking  if it happens suddenly, the can lose its shape.

A container has its own melting point if it is heated more than it, it will be in a condition of changing its shape just by a touch.
 and upon that if one adds cold water due to the the rapid decrease in the temperature it makes a lot of difference in shape.