Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 7 , 4 , 12 , 3 , 6 , 8 , 1 , 5 , 10 } ; int n = arr . Length ; if ( levelOrderIsOfBST ( arr , n ) ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }