Answer
During the interval 0 - 1 m, the work done is 4 J
During the interval 1 - 2 m, the work done is 0
During the interval 2 - 3 m, the work done is -2 J
Work Step by Step
The work done on the particle is equal to the area under the force versus position graph.
We can find the work done during the interval 0 - 1 m:
$W = F~d$
$W = (4~N)(1~m)$
$W = 4~J$
We can find the work done during the interval 1 - 2 m:
$W = F~d$
$W = (4~N)(0.5~m)+(-4~N)(0.5~m)$
$W = 0$
We can find the work done during the interval 2 - 3 m:
$W = \frac{1}{2}(-4~N)(1~m)$
$W = -2~J$