The correct option is D 1s2,2s22p6,3s2
Magnesium 1s22s22p63s2 is in group 2 of the Periodic Table and has first ionisation energy 737.7kJ/mol, second ionisation energy 1450.7 kJ/mol and third ionisation energy 7732.7 kJ/mol. Here the big jump occurs after the second ionisation energy. It means that there are 2 electrons which are relatively easy to remove the 3s2 electrons, while the third one is much more difficult because it comes from an inner level - closer to the nucleus and with less screening.