O may represent any of the above functional group. The formula is in compact form and doesn't represent a particular kind of functional group. It may be an Aldehyde, a ketone, an alcohol, an ether, etc. So, we have taken into account all of the possibilities as shown by the 11 isomers given.