Enter array of nums:

Enter k:


Find the kth greatest element of a given array of integers.