Arista Networks Interview Question

binary tree leetcode problem medium