The products X and Y in the following reaction sequence are

From the KVPY 2012 · Stream SA paper. Try it, check your answer, then read the worked solution below.
The products X and Y in the following reaction sequence are

Try it yourself first, then check your working against this.
Worked solution
Step 1. is the classical reduction of an aromatic nitro group to an amine:
Step 2. at low temperature diazotises the amine to the benzenediazonium salt, and with warming is the Sandmeyer reaction, replacing by bromine:
No chlorine enters the ring at any stage, which rules out (A), (C) and (D).
(B)
Concepts used: Sn/HCl reduces nitrobenzene to aniline, diazotisation then Sandmeyer with CuBr gives the aryl bromide
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Diazonium salts), each with a worked solution.
Timed, in the real format, and marked the moment you submit.