TikTok interview question

leetcode problem like kth largest element and word break.