Electron arrangement in Nickel
The available energy levels are arranged in the following order, going from the lowest level to the highest :
$1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p,$  etc. So the $4s$ level is filled before the $3d$.