The electron configuration for the O2- ion is 1s2 2s2 2p6.
To explain, an oxygen atom (O) has an atomic number of 8, which means it has 8 electrons in its neutral state. The electron configuration for a neutral oxygen atom is 1s2 2s2 2p4, indicating that it has 2 electrons in the first energy level (1s) and 6 electrons in the second energy level (2s and 2p combined).
When oxygen gains an additional 2 electrons to form the O2- ion, it achieves a full outer shell. This means it now has a total of 10 electrons. The full configuration for the O2- ion reflects this, resulting in 1s2 2s2 2p6, which is identical to the electron configuration of neon (Ne), making O2- isoelectronic with Ne.