You should know that the superoxide ion is O2-.
You should also know that potassium will exist as K+ in an ionic compound and so will have an oxidation state of +1.
Using either of these two fact it can be deduced that the oxidation state of oxygen in the compound is -1/2.