Apply preorder (), inorder ( ), and postorder () to the tree in Figure 6.64, if visit $(p)$ is defined as:
a. if (p->left $1=0$ & & p->key - p->left->key $<2$ )
$$
\text { p->left } \rightarrow \text { key }+=2 \text {; }
$$
b. if $(p->$ left $==0)$
$$
\mathrm{p}->\text { right }=0 \text {; }
$$
c. if $(\mathrm{p}->$ left $==0)$
$$
\mathrm{p}->\text { left }=\text { new IntBSTNode }(\mathrm{p}->\text { key }-1)
$$
d. {
$$
\begin{aligned}
& \text { tmp }=p->r i g h t ; \\
& p->\text { right }=p->\text { left; } \\
& p->\text { left }=\text { tmp; } \\ \}
\end{aligned}
$$