Problem
Given a list of words, return the k most frequent words, sorted by frequency (highest first) and breaking ties lexicographically (smallest first).
Input / Output
words, an integer k.Constraints
Example
["i","love","leetcode","i","love","coding"], k=2 → ["i","love"] (both appear twice; "i" < "love").