check wheter array contains three numbers whose sum is 0