LinkedIn interview question

questions from leetcode- reverse polish notation find maximum depth of binary tree