Pergunta de entrevista da empresa Microsoft

Coding question about linked lists.