Goldman Sachs interview question

leetcode problems of binary tree