You're interviewing as a software engineer and you sit down to begin a coding exercise via remote video chat. Your interviewer joins a minute late. You exchange light pleasantries, then intros. They ask you a few questions relevant to your experience and you answer them satisfactorily.
The interviewer says, "Right, lets move on to the coding exercise," and directs you to a collaborative coding website. You select your language of choice and they begin to describe your problem.
"You have an array of souls recently liberated from their mortal shell, represented by this array of signed floats called "theDead". You must design a function that determines which souls go to heaven and which souls go to hell,"
"Heaven and hell are empty. The cumulative value of all the souls in heaven and hell must both be nonzero, and exactly equal to each other. You may leave any number of souls in purgatory,"
"Your function must return a bool indicating whether the balance of heaven and hell can be met given the array of souls. The count of souls will be 0 < n < 1,000,000. Do you have any questions before you begin?"