Pregunta de entrevista de Oracle

reverse link list. I have him working code. he accepted the solution