public void dfsTraversal(){
        List<Character> result = new ArrayList<>();
        for(SuffixNode node : root.child){
            dfsTraversal(node, result);
        }
    }
Do a DFS traversal of the tree.
src/com/interview/suffixprefix/SuffixTree.java