Cohesity interview question

Kth largest element in an array. Solved with a heap,