A.x=top->data;top=top->next; B.top=top->next;x=top->data; C.x=top->next;top=top->data; D.top->next=top;x=top->data;
A.hgfe B.gfeh C.fgeh D.ehfg
A.(n+1)/2 B.n C.2n D.n-i