Introduction - If you have any usage issues, please Google them yourself
input
It is composed of multiple sets of data.
Each group of data is composed of two lines. The first line is the number of keywords to be inserted, n (1<=n<=100). The second line is a positive integer separated by a n space, with a value of no more than 100.
output
For each set of data, the output is two lines. The first line is the middle order traversal of the BST, the second line is the rear order traversal of the BST, and the keywords are separated by space.