second attempt at anagram in elixir