error: cannot slove it. recursive call flatten(root->left), flatten(root->right)get the rightmost of root->leftappend root->right to rightmost of root->leftassign root->left = nullptr