Wells Fargo interview question

split array in 2 parts with equal sums