I haven't slept in 2 days and am so exhausted. Please if anyone could help... I have class in 2 hours and it's 3am rn

Solution:-
Now
#1
Let's look at the EC of carbon(Z=6)
[tex]\\ \tt\longmapsto 1s^22s^22p^2[/tex]
Now.
3 electrons are shared(1 with H_3C and 2 with N+)
Hence
Electron left unshared=4-3=1
#2
Lets look at EC of Nitrogen(N),Z=7
[tex]\\ \tt\longmapsto 1s^22s^22p^3[/tex]
But
Its Cation i.e N+
Hence
Electron left unshared=4-3=1
#3
Lets look at EC of Oxygen(Z=8)
[tex]\\ \tt\longmapsto 1s^22s^22p^4[/tex]
But it is anion hence 1electron required more which us bonded
Hence
Number of electrons left unshared=0