039 get tree depth in recursive