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