it has 4 electrons in P orbital
P orbital has 3 subshell --> x,y,z
of the 4 electrons, first 3 are used to fill each x,y, and z
then the 4th one is used to fill x or any one of them ---as a result two subshell are left unpaired
sorry if i used wrong terms