At the time of compressing, the work done by the boy on the ball is positive as it causes the ball to squeeze, which is in the direction of force applied. However, the ball resists to change its shape and always tries to regain its original shape by opposing the force applied. Therefore, the work done by the ball on the boy is negative.