class Anagrams {

    public Set<String> generateFor(String input) {
        Set<String> results = new HashSet<String>();
        results.add(input);
        char[] reverse = new char[input.length()];
        for (int i = input.length() -1; i >= 0; i--) {
             reverse[input.length() - 1 - i] = input.charAt(i);
        }
        results.add(new String(reverse));
        return results;
    }

}