CME Group interview question

Traverse a nested linked list