Data Structure Algorithm, JavaScript, Programming, Software Development, Technology.
we’ll make sure to only keep the list of 10, and the prefix that generated it. We’ll then return an object with 2 attributes: the group which contains the prefix and all the words that started with it and the usedWords which is a list of the words that matched the prefix, so we can remove them from