Four short dipoles each of dipole moment p are placed at the vertices of a square of side a. The direction of the dipole moments are shown in the figure.