Arista Networks interview question

Lot on binary trees