Arista Networks Interview Question

Turn the unbalanced tree into a linked list by pointer manipulation.