The correct functional group X and the reagent/reaction conditions Y in the following scheme are

From the IIT-JEE 2011 · Paper 2 paper. Try it, check your answer, then read the worked solution below.
The correct functional group X and the reagent/reaction conditions Y in the following scheme are

Try it yourself first, then check your working against this.
Worked solution
Need: a diamine to condense with adipic acid into a polyamide.
(C), (D)
Concepts used: Hofmann bromamide, nitrile reduction, nylon from diamine + adipic acid
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Amines), each with a worked solution.
Timed, in the real format, and marked the moment you submit.