Pergunta de entrevista da empresa Chewy

Leetcode medium question - return K most common values in an array