Which group is arranged correctly in order of increasing energy for electrons in an element?

(A) 2p,2s,1s
(B) 3p,4s,3d
(C) 3s,3d,3p
(D) 2s,4p,3d
(E) 3p,4s,4d