Topic: Linked List Problem / Level: advanced

Problem: Write a function to flatten a multilevel doubly linked list where each node has both child pointers and random pointers.

Run the code to see the output here...