if ( arr [ i ] , arr [ i ] ) pair satisfies the condition , then we need to ensure that the count is decreased by one such that the ( arr [ i ] , arr [ i ] ) pair is not considered
if ( sum - arr [ i ] == arr [ i ] ) twice_count -- ; }