The innermost electron of an atom has the lowest level of energy while the outermost electron has the highest level of energy.
There are different energy levels in the atoms of elements, for an atom to go into an higher level it has to obtain more energy and to go to lower level it has to lose energy.