Solved maximum depth of binary tree problem.