The correct option is A O2−<F−<Na+<Mg2+
All are isoelectronic species. As number of protons i.e. atomic number increases, the attraction between electron and nucleus increases.
Thus, to remove an electron from the atom, more energy has to be supplied.
Hence, ionisation energy increases with increasing atomic number for isoelectronic species.