Domanda di colloquio di Voleon

Give algorithm to classify strings by unordered letters contained.