X is an aqueous solution. When X is added in excess to bromine water, the resulting solution is colourless. When X is treated with dilute hydrochloric acid, a gas with an irritating smell evolves. X may be
A. sodium sulphite solution
B. sodium hypochlorite solution
C. ammonium hydrogencarbonate solution
D. ammonium nitrate solution
Please explain your answer, thanks.