Top K Frequent Elements - Bucket Sort - Leetcode 347 - Python