The filling order is 1s, 2s, 2p, 3s, 3p, 4s, 3d ...  - memorise this.

Work out how many valence electrons there are and then you will
know which subshell is partially filled.