Pocket Gems Interview Question

Find k most popular numbers in an array