When there is height, there is potential energy associated.
Since water is falling from a height, potential energy is stored in water.
Consider the case of 1kg of water.
E=mgh
where m=1kg, g=9.8, h=500m(given)
E=1×9.8×500
E=4900 J
This is the energy stored in water as Q.
Specifc heat of water is c=4180 J/(kg K)
But specific heat
Q= mc ∆t
thus ∆t=Q/mc
∆t=4900/1×4180
∆t=1.17 K