Anagram detection function implemented. Codewars 7 kyu challenge.