Print keys in given range BST


Getting correct answer still its showing wrong answer what is wrong in my code?

you need to print output of each test case in separate line.
so add cout<<"\n" in the last of while loop,