Criteo interview question

Group Anagrams, List Match