Write out the components of force that would be from each other particle on the center particle. Then set the sums for each component (one sum for up/down, one sum for left/right) equal to zero.
Or, first observe symmetry in the problem and realize one of these net force components is zero regardless of q.