In simple word, sun does not burn. We think its burning but its not, its an illusion. Nuclear fusion, where uncountable hydrogen nucleus are merged under great pressure, which looks like its burning. That's why it doesn't need oxygen. This is the perocess we have in Hydrogen bombs.