exercise-anagrams/main.py: Add self-note to improve the algorithm

There's a way of lowering the memory usage.