Returns tree if given array of size n can represent a BST of n levels .
static bool canRepresentNLevelBST ( int [ ] arr , int n ) { Node root = createNLevelTree ( arr , n ) ; return isBST ( root , int . MinValue , int . MaxValue ) ; }