fix isAnagram implementation, it was just is reversed