Driver code
public static void Main ( String [ ] args ) { disjoint1 dis = new disjoint1 ( ) ; int [ ] set1 = { 12 , 34 , 11 , 9 , 3 } ; int [ ] set2 = { 7 , 2 , 1 , 5 } ; Boolean result = dis . aredisjoint ( set1 , set2 ) ; if ( result ) Console . WriteLine ( " YES " ) ; else Console . WriteLine ( " NO " ) ; } }