interview-practice prefix-related -> trie problem if you're keeping track of things that you've visited, consider modifying the array in place instead of using a set