Chewy Interview Question

Top k frequent elements (JavaScript)