void go(TreeNode x, List<Integer> list) {
        if (x == null)
            return;
        go(x.left, list);
        list.add(x.val);
        go(x.right, list);

    }
Why Did you create this class? what does it do?
src/problems/easy/MinimumDistanceBetweenBSTNodes.java