What is the general mechanism? Include possible intermediates.
a) SN1 substitution
b) SN2 substitution
c) Electrophilic aromatic substitution
d) Nucleophilic aromatic substitution