
The compound is:





When meta methyl aniline reacts with sodium nitrite in presence of an acidic medium then diazonium salt is formed then on reaction with -naphthol a colored compound is formed.
Meta methyl aniline also undergoes for the halogentaion reaction and desired compound is formed.

Asked in: JEE Main 2020 (09 Jan Shift 2)