Given that:
Side of a square, =a
Assuming that all the charges positive Q as shown in figure,
Woo′=qΔV
Potential difference is, ΔV=Vo′−Vo
Vo′=kQa2+kQa2+kQCO′+kQDO′
CO′=DO′=a√52
Vo′=4kQa(1+1√5)
And potentia duat O point will be, Vo=4kQ√2a2=8kQ√2a=4√2kQa
So, ΔV=Vo′−Vo =4kQa(1+1√5)− 4√2kQa
And work done will be, W=qΔV
Here q=e ,so work done to move an electron,
W=e×ΔV=4kQea[√5+1−√10√5]