Q.
In the following reaction, ' $A$ ' is
Solution:
Initially lone pair electron of $- NH _2$ attack on electrophilic carbon, after then lone pair electron of oxygen attacks leading to formation of cyclic compound.

Solution: