Phenol is acidic due to the resonance stabilization of the phenoxide ion. The introduction of an electron-withdrawing group such as -CHO increases acidity by stabilizing the negative charge on the oxygen atom.
Therefore, the acidity order is I<III<II.
Alkyl halides undergoing nucleophilic bimolecular substitution reaction involve: