Check 2 same values are present but they are negative and positive BUT how should i get the value which doesn't have its counterpart?

Those counter parts will be immediate next only?