LeetCode 347: Top K Frequent Elements | Python Leetcode 347: You are given an array nums and an integer k, you need to return k most frequent elements.