Arista Networks Interview Question

To implement binary tree traversal