The energy given out by the water as it is cooled down to 0度 is 2100J. Since it is less than the energy required for melting the whole ice cube(3340J), some ice remains in the mixture. At this moment both the water and remaining ice are at 0度, the heat exchange stops. Therefore, the final temperature is 0度.