Use Where Q is the work done, m is the mass of the water, c is the specific heat capacity of water, theta is the temperature change.
Thanks it really help though.