Function to find maximum size of DSU tree
static int findMax ( int n , int [ ] W ) { int maxi = 0 ; for ( int i = 1 ; i < n ; i ++ ) if ( W [ i ] % 2 == 0 ) maxi = Math . Max ( maxi , sz [ i ] ) ; return maxi ; }