If an element gains three electrons, it would have a full outer shell of electrons if it originally had five electrons in its outer shell. The element with five outer shell electrons is nitrogen. When nitrogen gains three electrons, it will have eight electrons in its outer shell, achieving a full outer shell configuration.
So the answer is nitrogen.