Driver code
public static void Main ( ) { int [ ] arr = { 2 , 4 , 8 , 6 , 9 , 12 } ; int n = arr . Length ; if ( check ( arr , n ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }