Confusion in input format

input format says that there will be three lines where first line will have no of test cases but sample input directly gives two lines without any no of test cases.

also are the two lines given in form of separate strings for two trees?

ignore this line “The first line of input contains the number of test cases T”

there will be only 1 testcase
means input always contain 2 lines only which represent 2 BST
you have to print the elements of both BSTs in sorted form.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.