Arista Networks Interview Question

Traverse through the binary tree