The correct option is B III>IV>II>I
The increasing acidic character is PhOH>CH3SH>MeOH>H2O.
Phenols are most acidic (due to resonance stabilization in phenoxide ion) and water is least acidic.
The decreasing basic character is PhO⊖<CH3S⊖<MeO⊖<⊖OH. As the acidic character increases, the basic character of conjugate base decreases. Since phenols are most acidic, phenoxide ions are least basic.