Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 0 , 2 , 3 , 7 } ; int n = arr . Length ; if ( validQuadruple ( arr , n ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }