class Anagrams {

    public List<String> from(String word) {
        List<String> anagrams = new ArrayList<String>();
        for (int i = 0; i < word.length(); i++) {
            anagrams.addAll(generatePermutationsFor(word));
        }
        return anagrams;
    }

}