public int longestUnivaluePath(TreeNode root) {
        if (root == null)
            return 0;
        dfs(root);
        return max;
    }
Why Did you create this class? what does it do?
src/problems/medium/LongestUnivaluePath.java