Implement a Trie (prefix tree) data structure supporting insert, search, and startsWith operations. In a variant observed in this interview, the Trie was applied to a file-system/folder hierarchy: given a path, navigate through the trie nodes representing each…