Solution for Maximum Depth of Binary Tree