The correct option is A K
M is the third shell, thus no. of electrons in third shell of various elements can be calculated as;
E.C of K( atomic no. 19) = [He]3s23p64s1 ; no. of electrons in M shell =8
E.C of Mn( atomic no. 25) = [He]3s23p63d54s2 ; no. of electrons in M shell =13
E.C of Ni( atomic no. 28) = [He]3s23p63d84s2 ; no. of electrons in M shell =16
E.C of Sc( atomic no. 21) = [He]3s23p63d14s2 ; no. of electrons in M shell =9
Therefore K has least no. of electrons in the M shell.