The major product 'P' formed in the following sequence of reactions is

From the NSE 2019 · NSEC · Chemistry paper. Try it, check your answer, then read the worked solution below.
The major product 'P' formed in the following sequence of reactions is

Try it yourself first, then check your working against this.
Worked solution
The steps are:
The amine condenses intramolecularly with the ketone, forming a six-membered ring (N, C2-C6). The product is the cyclic imine 6-methyl-2,3,4,5-tetrahydropyridine.
(C)
Concepts used: acetal protection, Hofmann bromamide, cyclic imine
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.