What are the steps to find the oxidation number?
It is not too difficult, but the determination depends on context.
Oxidation number is the formal charge left on the atom of interest when all the bonding electrons are broken, and the charge (the electron!) is assigned to the most electronegative atom.
Let's consider one example:
The oxidation number of an element is generally
See this older answer for more examples.