Meta interview question

K most frequent numbers in an array