Question d’entretien chez MathWorks

Problem involving counting anagrams efficiently