Arista Networks Interview Question

Lot on binary trees