Amazon interview question

Kth largest element in tree.