Virtusa interview question

Asked to find the kth largest element in an array