The correct option is D SO2
A compound is a pure substance that is formed when the atoms of two or more elements combine chemically in definite proportions.
Among the given molecules, O3, P4, and N2 are examples of molecules of elements.
Only SO2 has atoms of two different elements (oxygen and sulphur). Hence, SO2 is an example of a molecule of compound.