public static void main(String[] args) {
// TODO Auto-generated method stub
BST t=new BST();
Scanner sc=new Scanner(System.in);
int test=sc.nextInt();
while(test!=0) {
int n=sc.nextInt();
int ar[]=new int[n];
for(int i=0;i<n;i++) {
ar[i]=sc.nextInt();
}
Arrays.sort(ar);
t.constract(ar);
int m=sc.nextInt();
int arr[]=new int[m];
for(int j=0;j<m;j++) {
arr[j]=sc.nextInt();
}
for(int i=0;i<m;i++) {
t.delete(arr[i]);
}
t.preOrder();
System.out.println();
test--;
}
}
this is right or wrong if wrong then tell me how take input