The compound X is
Key idea: Methylene blue forms when p-amino-N,N-dimethylaniline reacts with sulphide ion in strong acid, with as the oxidant. This is the standard test for .
(This is from the 2009 passage. X in strong acid, plus p-amino-N,N-dimethylaniline, plus a few drops of Y, gives methylene blue.)
Answer: (D)
Tagged Analysis of anions. Machine-assigned, so read it as a strong shortlist rather than a verdict.