FactSet Interview Question

Dynamic Programming problem about unique subset of anagrams in an array