velocityavg=TotaldisplacementTotaltime
Here body goes from P to Q and comes back to P from Q, so here initial and final position
are same therefore displacement becomes zero.
As displacement becomes zero therefore average velocity also becomes zero.