public class Solution {    public int findDepth(TreeNode root) {        if (root == null) {            return 0;        }        return Math.max(findDepth(root.left) + 1, findDepth(root.right) + 1);    }    public int maxDepth(TreeNode root) {        return findDepth(root);    }}