This function sets the values of * x and * y to non - repeating elements in an array arr [ ] of size n
public static void UniqueNumbers2 ( int [ ] arr , int n ) { int sum = 0 ; for ( int i = 0 ; i < n ; i ++ ) {