Giving correct output but test case not passing

For each testcase , print the preorder traversal of the BST in a new line.
if this solves your doubt please mark it as resolved :slight_smile: