Infibeam Avenues interview question

Round 3: Flattening a Linked list