Tubi interview question

Top K Elements on Leet code