Doubt from oxygen containing organic compounds

Is answer A?

Nope it's C , I was getting a too.They've done Acylation first followed by removal of HCl and ring formation