The second law of thermodynamics states that heat can transfer easily from a region of high temperature to a region of low temperature. It is nearly impossible for heat energy to travel from a region of low temperature to a region of high temperature.
Here in this question, it is given that heat starts flowing from water into the metal sphere. Therefore if we abide by the above law, it is certain that the temperature of water is higher than the temperature of metal spheres.