Reaction of aniline with NaNO + dil. HCl at 0 °C followed by reaction with CuCN yields

From the KVPY 2015 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.
Reaction of aniline with NaNO + dil. HCl at 0 °C followed by reaction with CuCN yields

Try it yourself first, then check your working against this.
Worked solution
NaNO/HCl at 0 °C converts aniline to benzenediazonium chloride. CuCN replaces N with CN (Sandmeyer reaction), giving benzonitrile, structure III.
(C)
Concepts used: Sandmeyer reaction
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.