Amazon interview question

Kth largest elements in an array