Answer: A negative charge q = e(1 + 2√2)/4; the equilibrium of the system is unstable.
Explanation:
On each charge situated at the vertices of the square there act four forces (Fig.): the two forces F1 = F2 = e2/a2, due to the charges at vertices 1 and 2; the force F3 = e2/2a2, due to the charge at vertex 3; and the force F4 = 2qe/a2, due to charge q.
For equilibrium, it is necessary that the vector sum of these forces be zero, i.e.

To determine the nature of the equilibrium of the system, it is sufficient to consider a small displacement of one of the charges and estimate the character of the change in the magnitude of the forces due to the other charges. For the sake of simplicity, we shall consider a small displacement s of one of the charges +e along a diagonal in the direction away from the centre of the square (Fig.).

Since the distance from this charge to charge q is the smallest, then the displacement s produces a greater relative change in the distance to charge q than the relative change in the distance to the other charges. Consequently, in the case of the displacement s the force F4 decreases to a greater extent than the forces F1, F2 , F3. Moreover, the displacement s leads to a decrease in the angle between forces F1 and F2 due to charges 1 and 2. This decrease in angle leads to an increase in the resultant of forces F1 and F2 . Thus, in the new position of the charge, the force F4 will definitely be less than the vector sum of forces F1 + F2 + F3.
In the new position there will be a resultant force directed away from the equilibrium position.