The correct option is C HCl>NH3>O2
Higher the intermolecular interaction between the solute and the solvent, higher will be the solubility. HCl being a strong electrolyte has ion-dipole interactions with water. Ammonia forms H-bonds (dipole-dipole interactions) with water whereas in the case of O2, it has dipole-induced dipole interaction. Hence, the order of solubility will be HCl>NH3>O2