Answer: D
Explanation: Worst case arises when the tree is skewed(either to the left or right) in which case you have to process all the nodes of the tree giving O complexity, otherwise O(logn) as you process only the left half or the right half of the tree.