Nucleophilicity of sulfur-containing nucleophiles (such as SH−) is higher than that of oxygen-containing nucleophiles (such as OH−). Here Sulphur containing nucleophile can donate its lone pair. A stable carbocation is formed next, stable carbocation will be that which is away from CN group.





