algorithms/strings/anagram solution and tests