Solution:
Option (ii) is the answer.
Hydrogen, like halogens, prefers to gain an electron to achieve a stable noble gas structure. Hydrogen’s electrical configuration is 1s. The electrical configuration of helium, a noble gas, requires one additional electron. A stable electrical arrangement of a noble gas requires one additional electron in halogen.