Design a data structure to store anagrams | Millennium Interview Question