Amazon interview question

kth largest element in array variant