Driver method to test above method
public static void Main ( string [ ] args ) { int [ ] set1 = new int [ ] { 10 , 5 , 3 , 4 , 6 } ; int [ ] set2 = new int [ ] { 8 , 7 , 9 , 3 } ; if ( areDisjoint ( set1 , set2 ) ) { Console . WriteLine ( " Yes " ) ; } else { Console . WriteLine ( " No " ) ; } } }