Pergunta de entrevista da empresa WorldQuant

Given an array of strings, sort the array based on the frequency of anagrams.