Pregunta de entrevista de NetApp

Coding based based on linked list