Four charges are arranged at corners of a square ABCD

Four charges are arranged at corners of a square ABCD of side d in which Point has +q charge, B has -q charge, C has +q charge, D has -q charge and charge q’ is present at centre.
a) Find the work required to put together this arrangement.
b) A charge q’ is brought to the center of the square the four charges being fixed at its corners. How much extra work is needed to do this?

image