Pergunta de entrevista da empresa Oracle

They asked to write algorithm for reversing a linked list .