Virtana interview question

Kth smallest element in a BST Convert an array into a tree