An "excited state" is a condition where the electron has MORE energy. The "ground state" is the lowest energy level, where the electron has the minimum possible energy.
So, when an electron moves from an excited state to the ground state, it loses energy. The electron releases energy as it moves to the lowest energy level.
(last choice)