The first electron shell can hold upto two electrons. The second shell and third can hold up-to eight electrons. Since it has 7 valance electrons, the last number is 7. Therefore the electronic configuration is 2,8,7. So it has completely filled K and L shell