Yeah its true that hot water freezes faster than cold water.
This is basically due to the Mpemba effect.
According to the Scientists of Nan Yang University in Singapore , its answer lies in the bonding between the water molecules.
As we know that every water molecule has 2 Hydrogen atoms bonded to a 1 Oxygen atom by means of covalent bonds , which means they can share electrons with each other.
So According to the Scientists , when water molecules are close together their natural repulsion causes the covalent bonds to stretch and store energy.
As the water warms up it becomes less dense , the Hydrogen bonds stretches the molecules to move further apart.
When the Hydrogen bonds stretch they allow the covalent bonds to shrink and release their energy and this is equivalent to cooling.
So according to the Nan Yang theory hot water essentially able to release energy faster then cold water and leading to a quicker freeze.
;)