Beyond, Inc. Interview Question

iterate through this multi-linked data structure