Pregunta de entrevista de Microsoft

Question regarding linked lists and flattening nested linked lists