Arista Networks Interview Question

Implement "next" for binary trees.