max-depth-of-binary-tree problem