Union of two intervals Returns True . If there is a overlapping with the same another interval
public static Boolean union ( ArrayList < Integer > a , int x , int y ) { int xs = find ( a , x ) ; int ys = find ( a , y ) ; if ( xs == ys ) {