Phenom Interview Question

top k frequent elements from a given array