Pregunta de entrevista de Oracle

Coding question on Linked Lists.