When filling orbital with electrons wefill according to Diagonal filling rulefill up s orbitals, then p orbitals, then d orbitalsfilling according to electrons spinfill each energy level before moving up
Orbitals are filled according to the aufbau principle. That is, lower energy orbitals are filled before higher energy orbitals are filled. Therefore, fill each energy level before moving up