M shell means it is third shell ⇒n=3
Number of electrons in M shell=13 ⇒3s23p63d5
and N shell means it is fourth shell ⇒n=4
Number of electrons in N shell =1 4s1
thus the electronic configuration is: (1s2)(2s22p6)(3s23p63d5)(4s1)
The element is Chromium (Cr)