Topic: Linked List Problem / Level: intermediate

Problem: How do you flatten a multilevel doubly linked list where each node may have multiple children?

Run the code to see the output here...