public List<String> anagrams(String[] strs) {
        // write your code here
        List<String> res = new ArrayList<String>();
        if (strs.length <= 1)
            return res;
        // string after sort -> all the anagrams
        HashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();
        for (String str : strs) {
            char[] chs = str.toCharArray();
            Arrays.sort(chs);
            String temp = String.valueOf(chs);
            Printer.println("what the heck is temp " + temp);
            if (map.containsKey(temp)) {
                map.get(temp).add(str);
            } else {
                ArrayList<String> arr = new ArrayList<String>();
                arr.add(str);
                map.put(temp, arr);
            }
        }
        for (ArrayList<String> arr : map.values()) {
            if (arr.size() > 1)
                res.addAll(arr);
        }
        return res;
    }