Delete nodes from BST

getting run error.

Hey @RULEREMPIRES
try for this input
1
18
172 468 963 94 951 803 683 630 198 672 327 216 451 738 798 251 558 159
11
683 159 327 94 451 738 798 172 468 963 738