Water freezes at 32 degree F. The closer the temperature is to that point to start, the faster it will freeze. It is a myth that hot/boiling water freezes faster.
Room temperature water freezes faster than hot water, because the room temperature water is more closer to the freezing point when compared to hot water.
Room temperature water freezes faster then the hot water. The reason is the difference of temperature. Hot water firstly comes to room temperature and then falls below to freezing temperature. This creates a time lag