store storeInorder traversal in auxiliary array
public static void storeInorder ( Node ptr , List < int > vect ) { if ( ptr == null ) { return ; } storeInorder ( ptr . left , vect ) ; vect . Add ( ptr . data ) ; storeInorder ( ptr . right , vect ) ; }