X interview question

Delete a node on a binary search tree.