MaximumDepthOfBinaryTree improvement