Identify the functional groups and the reagent's job. Salicylic acid carries a $phenolic$ hydroxyl next to a carboxylic acid. Acetic anhydride is an acetylating agent: under acid it converts a phenol –OH into an acetate ester –OCOCH3, leaving the –COOH group unchanged.
The result is acetylsalicylic acid (aspirin), with substituents –OCOCH3 and –COOH on the ring. Options keeping a free –OH (no acetylation) or esterifying the acid instead are incorrect. Correct option: (D).