Arista Networks interview question

Traverse through the binary tree