Pregunta de entrevista de Bloomberg

problems solving questions about linked lists