void connectTwoNode (struct Node* a, struct Node* b){
if (a == NULL || b == NULL) return;
a->next = b;
connectTwoNode(a->left,a->right);
connectTwoNode(b->left,b->right);
connectTwoNode(a->right,b->left);
}
struct Node* connect(struct Node* root) {
if (root == NULL) return NULL;
connectTwoNode(root->left,root->right);
return root;
}