TikTok interview question

Leet code question was related to Priority Queue