Energy levels, sometimes called electron shells, are fixed distances from the nucleus of an atom where electrons are likely to be found. According to the Bohr model, an atom has several energy levels that can each hold a certain number of electrons. The first level holds a maximum of 2 electrons, while the second level can carry up to 8, following 2n^2 rule where n is the level number.
For oxygen, with its electron configuration of 2-6, its electrons completely fill the first energy level and partially fill the second. The fact that the second energy level is not filled means that oxygen can hold more electrons. In fact, it can accommodate 2 more, as it only holds 6 of the possible 8 electrons at that level. This is crucial for understanding oxygen's tendency to form compounds by gaining or sharing electrons to fill its valence shell.