Compound (X) undergoes the following sequence of reactions to give the lactone (Y). [2023]

(3)
