Jabong.com interview question

Subset problem Kth largest element in a tree