Update Flatten a multilevel linked list.cpp