[Solution by Dr. Abubacker] The HOMO of $N_2$ is $\sigma2p_z$ (0 unpaired), of $N_2^+$ is $\sigma2p_z$ with one electron (1), of $O_2$ is $\pi^*2p$ (2 unpaired) and of $O_2^+$ is $\pi^*2p$ with one electron fewer than $O_2$ (1 unpaired). So $0,1,2,1$. Answer (1).