Answer:
Step-by-step explanation:
The mechanism showing the process of the reaction is as follows:
From the given information, the starting compound includes a bromine atom & a protonated primary amine group. At the initial stage, dissociation of sodium carbonate occurs to form carbonate ions. This is followed by the attraction of a proton by the carbonate ion from the protonated amine group.
After that, there is a nucleophilic attack on the carbon atom at the nitrogen site by a bromine atom which results in the formation of a cyclic product. Finally, deprotonation of the nitrogen atom occurs to form Nicotine.