The second one is correct because all of its orbitals are filled properly. The first one's arrows are not always opposite (3d) and it did not fill one of the orbitals before continuing on (2p).
The element would be Germanium, with 32 electrons
Hope this helps!