Answer:
The ball moves from lowest to highest point:
W = M g h = 3 * 9.8 * 4 = 118 J
This is work done "against" gravity so work done by gravity is -118 J
The tension of the string does no work because the tension does not
move thru any distance W = T * x = 0 because the length of the string is fixed.