public static void main(String[] args) {
        ValidatePreorderTree validatePreorderTree=new ValidatePreorderTree();
        String s="1,#,#";
        System.out.println(validatePreorderTree.isValidSerialization(s));
    }