Write a function to find the depth of a binary tree.
int depth(treenode *p) { if(p==NULL)return(0); if(p->left){h1=depth(p->left);} if(p=>right){h2=depth(p->right);} return(max(h1,h2)+1); }