Otus interview question

Leetcode based binary tree algorithm