Circular Buffer
trie, deep understanding on trie from geeksforgeeks