The correct option is D SO2
All the four melecules are triatomic but there is a difference that CO2 and CS2 are linear while SO2 and H2O are non linear so they will have more degrees of freedom as triatomic non-linear molecule may rotate, about the three mutually perpendicular axes, (which the linear molecules can't ). Therefore, it possesses three degrees of freedom of rotation (while linear molecules posseses only two).
Also these non-linear molecules have three degrees of freedom of translation along the three co-ordinate axes. Hence it has six degrees of freedom.