Return the kth largest element in nums, using a min-heap of size k.
Patterns: heap. Difficulty: medium.
Open in Dryrun