Initially lone pair electron of $-\mathrm{NH}_2$ attack on electrophilic carbon, after then lone pair electron of oxygen attacks leading to formation of cyclic compound.
Hello 👋 Welcome to Competishun – India’s most trusted platform for JEE & NEET preparation. Need help with JEE / NEET courses, fees, batches, test series or free study material? Chat with us now 👇