I am using a tree data structure which looks something like this:
class TreeNode { public: TreeNode() {} int addChild(){ children.push_back(s