Determining the energy order of the states

Worked examples:

Fluorine