Answer: B
SN1 needs strong stabilisation of an ion-pair-like transition state and of the leaving anion by hydrogen bonding, so water is best (nonpolar hexane is worst). SN2 with an anionic nucleophile needs an aprotic solvent that leaves the anion unsolvated, so DMSO beats the protic water and methanol.