Exercism challenge -- Elixir: Basic list manipulation re-created