It is the type chart water beats fire. Of course it is ridiculous if you it is the actual sun, or any sun, unless you mean all oceans everywhere. In which case they can definitely destroy a star, although more through supernova or forming a black hole than extinguishing it. At least to my knowledge.