public static SuffixNode createNode(int start, End end){
        SuffixNode node = new SuffixNode();
        node.start = start;
        node.end = end;
        return node;
    }
Do validation of the tree by comparing all suffixes and their index at leaf node.
src/com/interview/suffixprefix/SuffixTree.java