maximumDepthOfBinaryTree

optimize it