The correct option is B 0
We know,
The oxidation number of an element in its elementary form or uncombined state is zero.
Here, O2 and H2 are elementary states of oxygen and hydrogen so their oxidation no. is 0 and 0 in O2 and H2 respectively.
So, sum of oxidatoin numbers =0+0=0.