IBM interview question

Remove a node in a binary search tree and perform heap.