How to solve Leetcode 104. Maximum Depth of Binary Tree