Inorder Successor in BST

I have a doubt in the input i.e. provided. How to build tree from nodes that are given ?

Consider the input as a preorder traversal and build the tree.
You can refer these
https://www.geeksforgeeks.org/construct-bst-from-given-preorder-traversa/
https://www.geeksforgeeks.org/inorder-successor-in-binary-search-tree/

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.

Sorry, I forgot to reply. Thanks for your help. I have rated my experience