trivial solution for maximum depth binary tree