Arista Networks interview question

binary tree leetcode problem medium