Spotify interview question

Kth largest in an array