Dear student,
For average speed we need to know the total distance travelled by particle in 4 seconds.

velocity of body is zero at t=2 seconds and the velocity reverses its direction.
Distance travelled upto 2 seconds=

Distance travelled from t=2 to t=4 =

Hence total distance travelled by body=

Hence average speed=3m/s