Cisco Interview Question

convert tree into linked list