print all words using iterator
In this lab, you will implement 3 functions that use iterators to answer questions about prefix trees. The functions you need to implement are as follows: void print_all_words_with_iterator(const PrefixTree& pt): prints all of the words in the given prefix tree int rank_word_with_iterator(string word, const PrefixTree& pt): returns the rank of the given word in the …