You will receive a string of comma-separated integers whose elements have both a negative and a positive value, except for one integer that is either only negative or only positive, our challenge will be to find that integer.
As usual shortest solution wins.
Input
"1,-1,2,-2,3"
Output
3
3
has no matching negative appearance