Implemented the function TrieRootToLeafPaths that gives all paths from the root to the leaves.