Find out the oxidation state of sodium in Na2O2.
In Na2O2, oxidation state of Na is +1. O has oxidation state -1 because it exists as peroxide.
Proof: Let us assume oxidation state of Na is x.
Now 2x + 2(-1) = 0
By solving we will get x = +1.