Assuming you've got the correct configuration for Ga to start (I don't have a periodic table on me at the moment and am too lazy to google it) then I would say the correct answer should be [Ar]3d104s2. You take the electrons from the highest energy orbitals. The way the configurations are written, the energy increases as we write more shells and subshells. So take away the 5s1 first and then take one away from the 4s2.