According to the Aufbau procedure for neutral atoms:
Which subshell is filled immediately before the 5d subshell? (Enter 1s, 2s, 2p, etc. as appropriate.)
Which subshell fills immediately after the 5d subshell? (Enter 1s, 2s, 2p, etc. as appropriate.)