An inorganic compound `(X)` gives a brick red flame on performing flame test. This compound gives the following tests also.
(a) Smells of chlorine when placed in moist air.
(b) If `KI` and `CH_(3)CooH` are added to the suspension in water, a brown colour is obtained.
Identify `(X)` and down equations for reactions at steps (a) and (b) .