In which of the following compounds, an element exhibits two different oxidation state?

1. NH2OH 2. NH4NO3
3. N2H4 4. N3H