Answer: D
Loss of NX2 gives the keto-carbene CX6HX5−CO−CH:. Wolff rearrangement moves the phenyl group from the carbonyl carbon to the carbene carbon and gives the ketene CX6HX5−CH=C=O. Methanol adds across C=O of the ketene to give the ester CX6HX5CHX2COOCHX3.