Anagram scala

Sorry, no words can be formed