FactSet interview question

Dynamic Programming problem about unique subset of anagrams in an array