Driver code
public static void Main ( ) { int [ ] a = { 1 , 0 , 2 } ; int n = a . Length ; bool possible = solve ( a , n ) ; if ( possible ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }