In the following reactions, the product S is

From the JEE Advanced 2015 · Paper 2 paper. Try it, check your answer, then read the worked solution below.
In the following reactions, the product S is

Try it yourself first, then check your working against this.
Worked solution
Ozonolysis (R). Ozonolysis of the indene C=C opens the five-membered ring. It gives a dicarbonyl with CHO on one ring carbon and CH₂CHO on the adjacent one.
Ring closure (S). NH₃ condenses with both carbonyls (imine formation and cyclisation). Aromatisation gives an isoquinoline. The ring methyl ends up at C7.
(A)
Concepts used: ozonolysis of indene gives a dialdehyde, condensation with NH₃ gives isoquinoline
Every past question tagged to the same part of the syllabus, with solutions.
All JEE Advanced questions on Hydrocarbons · All JEE Advanced questions on Aldehydes and Ketones
Past questions on the same topic (Alkenes), each with a worked solution.
Timed, in the real format, and marked the moment you submit.