Compound X undergoes following sequence of reactions to give the Lactone Y.

Key idea: A lactone is a cyclic ester. It forms when a molecule containing both –OH and –COOH (usually γ or δ to each other) loses water internally.
Without the reaction sequence and the option structures, compound X cannot be fixed with certainty.
Answer: (A)
Tagged Acid derivatives: esters, amides, anhydrides and acid chlorides. Machine-assigned, so read it as a strong shortlist rather than a verdict.