Cash App Interview Question

A leetcode style coding question - kth largest number