We have 6 letters out of which 3 are alike of one type and 3 different but in all 4 types: we can select them in the following manner:
(i) All different =C4=1
(ii) 2 alike 2 different =1C13C2=1.3=3
(iii) 3 alike and 1 different =1C13C1=1.3=3
Hence the total number of ways is 1+3+3=7
Out of there alike OOO you may select one O or two O or three O, this can be done only in one way.