Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 512 , 330 , 78 , 11 , 8 } ; int n = arr . Length ; if ( canRepresentNLevelBST ( arr , n ) ) { Console . WriteLine ( " Yes " ) ; } else { Console . WriteLine ( " No " ) ; } } }