Solve the following problems:

- same-tree
- best-time-to-buy-and-sell-stock-ii