Cash App interview question

A leetcode style coding question - kth largest number