Function for constructing all possible trees with given inorder traversal stored in an array from arr [ start ] to arr [ end ] . This function returns a vector of trees .
vector < Node * > getTrees ( int arr [ ] , int start , int end ) {