A recursive function to construct Full from pre [ ] and post [ ] . preIndex is used to keep track of index in pre [ ] . l is low index and h is high index for the current subarray in post [ ]
public static node constructTreeUtil ( int [ ] pre , int [ ] post , int l , int h , int size ) {