1. Top K Frequent Elementshistorical

    Find the top K frequent elements using frequency counting with sorting or a min-heap.