Question d’entretien chez Jabong.com

Subset problem Kth largest element in a tree