You are given an integer array nums and an integer k. Implement a function that returns the kth largest element in the nums array.
nums
k