(i) During compression, the work done on the ball is positive as the direction of the force applied by the fingers is along the compression of the ball.
(ii) During expansion, the work done is negative as expansion takes place against the force applied by the fingers on the ball.