@@ -0,0 +1,579 @@
+import org.junit.Test;%0A%0Aimport java.util.Arrays;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class AnagramTest %7B%0A%0A    /*%0A    O(n) anagram%0A     */%0A    @Test%0A    public void anagram_Test() %7B%0A%0A       boolean result = anagram(%22williamshakespeare%22, %22iamaweakishspeller%22);%0A%0A        assertThat(result).isEqualTo(true);%0A    %7D%0A%0A    private boolean anagram(String s1, String s2) %7B%0A        if(s1.length()!=s2.length()) return false;%0A%0A        int sum = 0;%0A        for( int i=0; i%3Cs1.length(); sum += s1.charAt(i) - s2.charAt(i), i++);%0A        return sum == 0;%0A    %7D%0A%7D%0A

Add very simple anagram O(n)