Domanda di colloquio di MathWorks

Problem involving counting anagrams efficiently