buildTree() :
build tree structure with string
buildList():
build List structure with string
some utils to help.
Solution :
LeetCode source code to solves the problems
auto solver = Solution() ;
auto ret = solver->method_name(args) ;
// output to check the answer.