Microsoft Interview Question

k-frequent elements leetcode style question