The work done by the external agent is W=q(Vend−Vstart).
A → B (along the arc). A and B are both at distance r from Q, so they lie on the same equipotential sphere: VA=VB.
WAB=0
(At every point of the arc the field of Q is radial, perpendicular to the motion.)
B → C (radially outward).
WBC=q(2rkQ−rkQ)=−2rkQq=−4πε012rQq
For like charges (Qq>0) this is negative: the repulsion does the work and the agent only has to hold the charge back. For unlike charges it is positive.