Sounds a lot like chromatography to me. The white dwarf is created in the collapse of a star due to lack of light fusion material. This leaves the
heavier elements behind. The large difference in mass between H and C or O would easily "column" the lightest element at the surface. I suspect the
carbon/oxygen interior is inferred by the size and age of the star determining the dominant fusion products formed during the birth of the dwarf
star.It seems as though most light elements are formed in this fashion up to around Fe then the nuclear mass requires much more energetic conditions
to form stable nuclei.Conditions like a supernova are largely responsible for the elements heavier than Iron.Granted I am no cosmologist but I do
believe this is the accepted mechanism.
APB





