Pergunta de entrevista da empresa Amazon

Given array of strings, return the k most frequent strings.