Build BST Problem

Why I am getting wrong answer ?

hello @vaishnavtannu
print output for each test case in separate line.
i,e add cout<<"\n";
after call preorder function