The "N" which does not contribute to the basicity for the compound is :

From the JEE Main 2016 · 10 Apr · Shift 1 paper. Try it, check your answer, then read the worked solution below.
The "N" which does not contribute to the basicity for the compound is :

Try it yourself first, then check your working against this.
Worked solution
N9 carries the H and its lone pair is part of the aromatic sextet of the imidazole ring, so it is not available to accept a proton. N1, N3 and N7 have lone pairs in the ring plane.
Concepts used: basicity of nitrogen in heterocycles
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Acidity and basicity), each with a worked solution.
Timed, in the real format, and marked the moment you submit.