Amazon Interview Question

Kth largest element in tree.