Pregunta de entrevista de Oracle

One Linked List question, Second was a general math question