The correct option is B Because hydrogen can accommodate a maximum of 2 electrons in its valence shell.
Because hydrogen can accommodate a maximum of 2 electrons in its valence shell (K-shell → 2n2=2 as (n=1 for K-shell)), thus it does not obey the octet rule.
By obtaining 2 electrons in its valence shell, it attains the nearest noble gas configuration, i.e., of helium.