Calculate the maximum number of electrons in 1st, 2nd, 3rd, and 4th shells.
Maximum number of electrons in a shell is given by 2n2.
The maximum number of electrons in 2nd shell.