The electron configuration for a neutral atom of oxygen would be the final option:
O : 1s^2 2s^2 2p^4.
Knowing that this is a neutral atom of oxygen, and that it posses the same number of electrons and protons, the total number of electrons would be 8. Which can be found out by adding the exponents for each subshell.