Introduction - If you have any usage issues, please Google them yourself
Create a binary tree and parameter exchange for each node of the root node to the left and right subtree, find x nodes and output nodes of all its ancestors, create a binary tree in order traversal preorder traversal.