Pergunta de entrevista da empresa NetApp

Coding based based on linked list