A cyclic anhydride reacts with HO to give 'A' (major product).
'A' formed in the above reaction is
When this compound reacts with water (), it undergoes a nucleophilic addition to the most electrophilic carbonyl group (the central one, which is destabilized by the adjacent electron-withdrawing carbonyl groups).The major product 'D' is Ninhydrin (2,2-dihydroxyindane-1,3-dione).
Topic: Acid derivatives: esters, amides, anhydrides and acid chlorides