Let the oxidation number of s is a
Oxidation number of ch3 = +1
Oxidation number of O = -2
2(+1)+a+(-2)=0
a=0
Hence the oxidation numbr of sulphur in is dimethyl sulphoxide is zero(0).